package priv.dajie.tzzq.bot.model;

import priv.dajie.tzzq.model.QualityName;

import java.util.Date;

public class BuyHistoryItem {
    private QualityName qualityName;
    private String goodsID;
    private String buyID;
    private TradeState tradeState;
    private Date date;
    private String takeBackId;

    public BuyHistoryItem(QualityName qualityName, String goodsID, String buyID, TradeState tradeState, Date date) {
        this.qualityName = qualityName;
        this.goodsID = goodsID;
        this.buyID = buyID;
        this.tradeState = tradeState;
        this.date = date;
    }

    public BuyHistoryItem(QualityName qualityName, String goodsID, String buyID, TradeState tradeState, Date date, String takeBackId) {
        this.qualityName = qualityName;
        this.goodsID = goodsID;
        this.buyID = buyID;
        this.tradeState = tradeState;
        this.date = date;
        this.takeBackId = takeBackId;
    }

    public QualityName getQualityName() {
        return qualityName;
    }

    public String getGoodsID() {
        return goodsID;
    }

    public String getBuyID() {
        return buyID;
    }

    public TradeState getTradeState() {
        return tradeState;
    }

    public Date getDate() {
        return date;
    }

    public String getTakeBackId() {
        return takeBackId;
    }

    @Override
    public String toString() {
        return "BuyHistoryItem{" +
                "qualityName=" + qualityName +
                ", goodsID='" + goodsID + '\'' +
                ", buyID='" + buyID + '\'' +
                ", tradeState=" + tradeState +
                ", date=" + date +
                ", takeBackId='" + takeBackId + '\'' +
                '}';
    }
}
